We currently include a fake config.js file to satisfy the indirect
import from ExtensionUtils. However we're about to need to pass
build-time information into the program ourselves, so generate
a proper file.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2841>
install_dir: pkgdatadir,
)
+subdir('misc')
+
gnome.compile_resources(
app_id + '.src',
configure_file(
output: app_id + '.src.gresource.xml',
configuration: {'profile': '/'.join(profile.split('.')) },
),
- source_dir: ['.', '../../../js'],
+ source_dir: ['.', meson.current_build_dir(), '../../../js'],
gresource_bundle: true,
install: true,
install_dir: pkgdatadir
+++ /dev/null
-/* Fake module to satify import in ExtensionUtils */
--- /dev/null
+var PACKAGE_VERSION = '@PACKAGE_VERSION@';
--- /dev/null
+config_js = configure_file(
+ input: 'config.js.in',
+ output: '@BASENAME@',
+ configuration: {
+ 'GETTEXT_VERSION': meson.project_version(),
+ }
+)